package android.app.betmein.view;

import roboguice.inject.InjectView;
import android.app.betmein.R;
import android.content.Context;
import android.framework.paging.BaseViewInitializer;
import android.framework.paging.ConcretePagerAdapter;
import android.framework.paging.IInitListener;
import android.support.v4.view.ViewPager;
import android.view.View;

public class MultipleMasterPageView extends MasterPageView{

	@InjectView(R.id.viewPager)
	private ViewPager viewPager;
	
	private ConcretePagerAdapter pagerAdapter;
	
	
	public MultipleMasterPageView(IInitListener initListener, Context context, int layout) {
		super(initListener, context, layout);
	}
	
	public void addNewView(BaseViewInitializer view){
		pagerAdapter.addViewInitializer(view);
	}

	@Override
	public void init(View view) {
		pagerAdapter = new ConcretePagerAdapter();
        viewPager.setAdapter(pagerAdapter);
	}
	
}
